package com.torry.workflow.service.wo.service;

import com.torry.workflow.api.user.entity.User;
import com.torry.workflow.api.wo.entity.ProcessNode;
import com.torry.workflow.api.wo.entity.ProcessUserGroup;
import com.torry.workflow.api.wo.entity.WoDetail;
import com.torry.workflow.api.wo.entity.WoInfo;

import java.util.List;

public interface IProcessService {

    List<ProcessNode> getWoRealProcess(WoInfo wo, List<ProcessNode> nodes);


    List<ProcessNode> revertProcess(WoDetail woDetail);

    List<ProcessUserGroup> getAllUserGroups();

    void insertUserGroup(ProcessUserGroup group);

    void updateUserGroup(ProcessUserGroup group);

    void deleteUserGroup(Integer groupId);

    List<User> getUsersByUserGroupId(Integer userGroupId);
}
